// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import Layout from '@/layout'

const testsRouter = {
  path: '/tests',
  component: Layout,
  redirect: '/tests/index',
  name: 'Tests',
  meta: {
    title: '试验管理',
    icon: 'clipboard',
  },
  children: [
    {
      path: 'index',
      name: 'testsIndex',
      component: () => import('@/views/tests/index'),
      meta: {
        title: '试验信息管理',
        icon: 'clipboard',
      }
    },
    {
      path: 'material',
      name: 'testsMaterial',
      component: () => import('@/views/tests/material/index'),
      meta: {
        title: '试验附件',
        icon: 'clipboard',
      }
    },
    {
      path: 'log',
      name: 'testsLog',
      component: () => import('@/views/tests/material/log'),
      meta: {
        title: '试验日志',
        icon: 'clipboard',
      }
    },
    {
      path: 'failure',
      name: 'testFailure',
      component: () => import('@/views/tests/material/failure'),
      meta: {
        title: '试验故障统计',
        icon: 'clipboard',
      }
    },
    {
      path: 'record',
      name: 'testRecord',
      component: () => import('@/views/tests/material/record'),
      meta: {
        title: '试验记录',
        icon: 'clipboard',
      }
    }
  ]
}

export default testsRouter  //collate
